
package devbureau.fstore.common;

import java.util.Date;

public class ItemDataImpl  extends ItemImpl implements ItemData{

    Integer id = null;
    Integer balance = null;
    Double priceRUR = null;
    String currency = null;
    String nameRU = "";


	public ItemDataImpl(Integer id,String supplierLabel, String name, String nameRU, Integer length,Date deliveryDate, Integer quantity, Double price, String plantation, String currency, Double priceRUR, Integer availabelQuantity) {
		super(supplierLabel, name, length, deliveryDate, quantity, price, plantation);
        this.id = id;
        this.balance = availabelQuantity;
        this.priceRUR = priceRUR;
        this.currency = currency;
        this.nameRU = nameRU;

	}

    public Integer getId() {
        return id;
    }

    public Integer getBalance() {
       return balance;
    }

    @Override
    public String toString() {
        return "id:" + id + ";"+ super.toString() + "priceRUR:"+priceRUR+";balance:"+balance;
    }

    public Double getPriceRUR() {
        return priceRUR;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setPriceRUR(Double priceRUR) {
        this.priceRUR = priceRUR;
    }
    
    public String getCurrency() {
        return currency;
    }

    public String getNameRU() {
        return nameRU;
    }
}
